﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuanLyNganHangDe.BLL
{
    public class Constant
    {
        public const string VaiTroTacNghiep = "Tác nghiệp";
        public const string VaiTroDieuHanhNghiepVu = "Điều hành nghiệp vụ";
        public const string VaiTroQuanTriHeThong = "Quản trị hệ thống";

        /// <summary>
        /// Khóa bắt đầu phần câu hỏi
        /// </summary>
        public const string WordKeyListQuestionStart = "[lq_start]";
        /// <summary>
        /// Khóa kết thúc phần câu hỏi
        /// </summary>
        public const string WordKeyListQuestionEnd = "[lq_end]";

        /// <summary>
        /// Khóa bắt đầu một khối
        /// </summary>
        public const string WordKeyPartStart = "[part_start]";
        /// <summary>
        /// Khóa kết thúc khối
        /// </summary>
        public const string WordKeyPartEnd = "[part_end]";

        /// <summary>
        /// Khóa bắt đầu 1 câu hỏi
        /// </summary>
        public const string WordKeyQuestionStart = "[question_start]";
        /// <summary>
        /// Khóa kết thúc câu trả lời
        /// </summary>
        public const string WordKeyQuestionEnd = "[question_end]";


        public const string WordKeyListAnwserStart = "[la_start]";
        public const string WordKeyListAnwserEnd = "[la_end]";
        public const string WordKeyAnwserStart = "[anw_start]";
        public const string WordKeyAnwserEnd = "[anw_end]";

        public const char CharBeginKey = '[';
        public const char CharEndKey = ']';
        public const string BetweenTitleAndContentDoubleKey = ":";
        public const char BetweenTitleAndContentSingleKey = ')';


        /// <summary>
        /// For exam
        /// </summary>
        public const string WordKeyListQuestionStartForExam = "[lq_start]";
        public const string WordKeyListAnwserStartForExam = "[la_start]";
        public const char CharBeginKeyForExam = '[';
        public const char CharEndKeyForExam = ']';
        public const string LanThi = "[order_exam]";
        public const string TenHocKy = "[semester_name]";
        public const string NgayThi = "[date_exam]";
        public const string TenHocPhan = "[subject_name]";
        public const string MaHocPhan = "[subject_id]";
        public const string SoTinChi = "[credits]";
        public const string MaDe = "[id_exam]";
        public const string ThoiGianLamBai = "[time_exam]";
        public const string LoaiDe = "[type_exam]";

        public const string DuocSuDungTaiLieu = "Được sử dụng tài liệu";
        public const string KhongDuocSuDungTaiLieu = "Không được sử dụng tài liệu";

        public static int MaxLenthKey()
        {
            return 20;
            int max = WordKeyPartEnd.Length > WordKeyPartStart.Length ? WordKeyPartEnd.Length : WordKeyPartStart.Length;
            max = WordKeyQuestionEnd.Length > WordKeyQuestionStart.Length ? WordKeyQuestionEnd.Length : WordKeyQuestionStart.Length;
            max = WordKeyListQuestionStart.Length > WordKeyListQuestionEnd.Length ? WordKeyListQuestionStart.Length : WordKeyListQuestionEnd.Length;
            return max;
        }
    }
}
